package homeworkSYX_OODay04;

public class Dog extends Animal implements Swim{
    Dog(){

    }
    Dog(String name,String color,int age){
        super(name, color, age);
    }
    public void lookHome(){
        System.out.println(color + "色的" + age + "岁的小狗" + name + "正在看家..");
    }
    public void swim(){
        System.out.println(color + "色的" + age + "岁的小狗" + name + "正在游泳..");
    }
    public void eat(){
        System.out.println(color + "色的" + age + "岁的小狗" + name + "正在啃骨头..");
    }
}
